package br.com.albatroz.et;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table (name="tb_campeonato")
public final class Campeonato extends AbstractEntity{

	@Column
	private String name;
	
	@OneToMany
	private List<Partida> listaPartidas;
	
	@OneToMany
	private List<Time> listaTimes;
	
	@ManyToOne
	private Location location;
	
	public Campeonato(){
		super();
	}
	
	public List<Partida> getListaPartidas() {
		return listaPartidas;
	}
	public void setListaPartidas(List<Partida> listaPartidas) {
		this.listaPartidas = listaPartidas;
	}
	public List<Time> getListaTimes() {
		return listaTimes;
	}
	public void setListaTimes(List<Time> listaTimes) {
		this.listaTimes = listaTimes;
	}
	public Location getLocation() {
		return location;
	}
	public void setLocation(Location location) {
		this.location = location;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

}